//
//  YAYIPerformanceLineChart.h
//  YAYIDoctor
//
//  Created by Veer on 16/5/10.
//  Copyright © 2016年 hxp. All rights reserved.
//

#import <UIKit/UIKit.h>

#define lineOrangeColor YAYIColor(239, 157, 116)
#define lineBlueColor YAYIColor(131, 203, 148)

typedef enum : NSUInteger {
    ChartTypeThisWeek,
    ChartTypeThisMonth,
    ChartTypeThisYear,
} ChartType;

@class KAChartModel;

@protocol YAYIOALineChartDelegate <NSObject>

- (void)OALineChartGuideLineDidShow;
- (void)OALineChartDidShowGuidelineWithModel:(KAChartModel *)model index:(NSInteger)index;
- (void)OALineChartGuideLineDidHide;

@end


@interface YAYIOALineChart : UIView





@property (nonatomic, weak) id<YAYIOALineChartDelegate> delegate;


@property (nonatomic, strong) NSArray *xArray;
@property (nonatomic, strong) NSMutableArray<KAChartModel *> *dataArray;

@property (nonatomic, assign) ChartType chartType;


- (void)showLineByAnimation;
- (void)clearSubView;

@end
